[gd_scene load_steps=26 format=3 uid="uid://clolisfckmf3"]

[ext_resource type="Script" path="res://scenes/hud/hud.gd" id="1_3t6m6"]
[ext_resource type="PackedScene" uid="uid://rgll4to22jal" path="res://scenes/ui/wood_button/wood_button.tscn" id="2_5v1iv"]
[ext_resource type="Texture2D" uid="uid://dv5nc13lm58xs" path="res://assets/sprites/hud/home/home.png" id="3_bj28u"]
[ext_resource type="Texture2D" uid="uid://cdvkt5ua2fkcu" path="res://assets/sprites/hud/reload/reload.png" id="4_mkgfp"]
[ext_resource type="Texture2D" uid="uid://bffnxy3rxjv6h" path="res://assets/sprites/hud/mobile/left.png" id="5_dp3u3"]
[ext_resource type="Texture2D" uid="uid://csfghfq3cukes" path="res://assets/sprites/hud/interaction/interaction.png" id="5_tml6n"]
[ext_resource type="Texture2D" uid="uid://bm1m0fhwkvrhg" path="res://assets/sprites/hud/mobile/right.png" id="6_hfnfa"]
[ext_resource type="Texture2D" uid="uid://sogisqmxrgi6" path="res://assets/sprites/hud/mobile/jump.png" id="7_crr60"]

[sub_resource type="AtlasTexture" id="AtlasTexture_7pfdf"]
atlas = ExtResource("3_bj28u")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_p0any"]
atlas = ExtResource("3_bj28u")
region = Rect2(0, 32, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_rasr2"]
atlas = ExtResource("4_mkgfp")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_q5lc0"]
atlas = ExtResource("4_mkgfp")
region = Rect2(0, 32, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_u8gd5"]
atlas = ExtResource("5_tml6n")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_w8uxt"]
atlas = ExtResource("5_tml6n")
region = Rect2(0, 32, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_p0jw2"]
atlas = ExtResource("5_tml6n")
region = Rect2(0, 32, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_53umd"]
atlas = ExtResource("5_dp3u3")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_c2x0u"]
atlas = ExtResource("5_dp3u3")
region = Rect2(0, 32, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_bugol"]
atlas = ExtResource("6_hfnfa")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_d3m5g"]
atlas = ExtResource("6_hfnfa")
region = Rect2(0, 32, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_vyqo4"]
atlas = ExtResource("7_crr60")
region = Rect2(0, 0, 32, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_k74vv"]
atlas = ExtResource("7_crr60")
region = Rect2(0, 32, 32, 32)

[sub_resource type="Animation" id="Animation_q6xkg"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MarginContainer/VBoxContainer/HBoxContainer2/InteractButton:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}

[sub_resource type="Animation" id="Animation_fc1s7"]
resource_name = "hide_interaction_prompt"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MarginContainer/VBoxContainer/HBoxContainer2/InteractButton:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}

[sub_resource type="Animation" id="Animation_guvhw"]
resource_name = "show_interaction_prompt"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("MarginContainer/VBoxContainer/HBoxContainer2/InteractButton:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_61wjg"]
_data = {
"RESET": SubResource("Animation_q6xkg"),
"hide_interaction_prompt": SubResource("Animation_fc1s7"),
"show_interaction_prompt": SubResource("Animation_guvhw")
}

[node name="HUD" type="CanvasLayer"]
layer = 10
script = ExtResource("1_3t6m6")

[node name="MarginContainer" type="MarginContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 3
theme_override_constants/margin_top = 3
theme_override_constants/margin_right = 3
theme_override_constants/margin_bottom = 3

[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2

[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
alignment = 2

[node name="HomeButton" parent="MarginContainer/VBoxContainer/HBoxContainer" instance=ExtResource("2_5v1iv")]
layout_mode = 2
size_flags_horizontal = 2
size_flags_vertical = 0
texture_normal = SubResource("AtlasTexture_7pfdf")
texture_pressed = SubResource("AtlasTexture_p0any")
texture_hover = SubResource("AtlasTexture_p0any")

[node name="ReloadButton" parent="MarginContainer/VBoxContainer/HBoxContainer" instance=ExtResource("2_5v1iv")]
layout_mode = 2
size_flags_horizontal = 10
size_flags_vertical = 0
texture_normal = SubResource("AtlasTexture_rasr2")
texture_pressed = SubResource("AtlasTexture_q5lc0")
texture_hover = SubResource("AtlasTexture_q5lc0")

[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 10
alignment = 1

[node name="InteractButton" parent="MarginContainer/VBoxContainer/HBoxContainer2" instance=ExtResource("2_5v1iv")]
modulate = Color(1, 1, 1, 0)
layout_mode = 2
texture_normal = SubResource("AtlasTexture_u8gd5")
texture_pressed = SubResource("AtlasTexture_w8uxt")
texture_hover = SubResource("AtlasTexture_p0jw2")

[node name="TouchButtons" type="Node2D" parent="MarginContainer"]

[node name="LeftButton" type="TouchScreenButton" parent="MarginContainer/TouchButtons"]
position = Vector2(3, 157)
texture_normal = SubResource("AtlasTexture_53umd")
texture_pressed = SubResource("AtlasTexture_c2x0u")
action = "player_left"
visibility_mode = 1

[node name="RightButton" type="TouchScreenButton" parent="MarginContainer/TouchButtons"]
position = Vector2(39, 157)
texture_normal = SubResource("AtlasTexture_bugol")
texture_pressed = SubResource("AtlasTexture_d3m5g")
action = "player_right"
visibility_mode = 1

[node name="JumpButton" type="TouchScreenButton" parent="MarginContainer/TouchButtons"]
position = Vector2(349, 157)
texture_normal = SubResource("AtlasTexture_vyqo4")
texture_pressed = SubResource("AtlasTexture_k74vv")
action = "player_jump"
visibility_mode = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_61wjg")
}

[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/HomeButton" to="." method="_on_home_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/ReloadButton" to="." method="_on_reload_button_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer2/InteractButton" to="." method="_on_interact_button_pressed"]
